#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_log.h"
#include "mqtt.h"
#include "uart.h"

#define MQTT_STACK_SIZE 4096
#define UART_STACK_SIZE 4096

void app_main(void)
{   
    // 创建UART任务
    xTaskCreatePinnedToCore(uart_event_task, "uart", UART_STACK_SIZE, NULL, 6, NULL, 1);
    // 创建MQTT任务
    xTaskCreatePinnedToCore(mqtt_start, "mqtt_task", MQTT_STACK_SIZE, NULL, 5, NULL, 0);
}


